Problem Note 44206: PROC PRINTTO might generate an empty file
The PRINTTO procedure requires an open Listing destination in order to route procedure output to an external file or to a SAS catalog entry. ODS LISTING is off by default in the SAS windowing environment in SAS® 9.3 on Microsoft Windows and UNIX operating systems. A file is created by PROC PRINTTO, but no procedure output is written. The file appears to be empty.
To prevent the creation of an empty file with PROC PRINTTO in SAS® 9.3, SAS® Enterprise Guide® users can select Tools ► Options ► Results ► Results General and verify that the Text option is selected. SAS windowing environment users can select Tools ► Options ► Preferences ► Results, and select the Create Listing option. In both environments, you can also explicitly open and close the Listing destination using the ODS LISTING statement, as shown below.
ods listing;
proc printto print="check.lst" new;
run;
data test;
a=5;
b=7;
c=9;
run;
proc means data=test maxdec=1 mean;
var a b c;
run;
proc printto print=print;
run;
ods listing close;
Starting with the second maintenance release for SAS 9.3 (TS1M2), the Listing destination is automatically turned on when issuing a PROC PRINTTO statement using the PRINT= option.
Operating System and Release Information
SAS System | Base SAS | Solaris for x64 | 9.3 TS1M0 | 9.3 TS1M2 |
Linux for x64 | 9.3 TS1M0 | 9.3 TS1M2 |
Linux | 9.3 TS1M0 | 9.3 TS1M2 |
HP-UX IPF | 9.3 TS1M0 | 9.3 TS1M2 |
64-bit Enabled Solaris | 9.3 TS1M0 | 9.3 TS1M2 |
64-bit Enabled HP-UX | 9.3 TS1M0 | 9.3 TS1M2 |
64-bit Enabled AIX | 9.3 TS1M0 | 9.3 TS1M2 |
Windows Vista for x64 | 9.3 TS1M0 | 9.3 TS1M2 |
Windows Vista | 9.3 TS1M0 | 9.3 TS1M2 |
z/OS | 9.3 TS1M0 | 9.3 TS1M2 |
Teradata on Linux | 9.3 TS1M0 | 9.3 TS1M2 |
Netezza TwinFin 64-bit SMP Hosts | 9.3 TS1M0 | 9.3 TS1M2 |
Netezza TwinFin 64-bit S-Blades | 9.3 TS1M0 | 9.3 TS1M2 |
Netezza TwinFin 32-bit SMP Hosts | 9.3 TS1M0 | 9.3 TS1M2 |
Netezza TwinFin 32bit blade | 9.3 TS1M0 | 9.3 TS1M2 |
Greenplum on Linux x64 | 9.3 TS1M0 | 9.3 TS1M2 |
Windows 7 Ultimate x64 | 9.3 TS1M0 | 9.3 TS1M2 |
Windows 7 Ultimate 32 bit | 9.3 TS1M0 | 9.3 TS1M2 |
Windows 7 Professional x64 | 9.3 TS1M0 | 9.3 TS1M2 |
Windows 7 Professional 32 bit | 9.3 TS1M0 | 9.3 TS1M2 |
Windows 7 Home Premium x64 | 9.3 TS1M0 | 9.3 TS1M2 |
Windows 7 Home Premium 32 bit | 9.3 TS1M0 | 9.3 TS1M2 |
Windows 7 Enterprise x64 | 9.3 TS1M0 | 9.3 TS1M2 |
Windows 7 Enterprise 32 bit | 9.3 TS1M0 | 9.3 TS1M2 |
Microsoft Windows XP Professional | 9.3 TS1M0 | 9.3 TS1M2 |
Microsoft Windows Server 2008 for x64 | 9.3 TS1M0 | 9.3 TS1M2 |
DB2 Universal Database on Linux x64 | 9.3 TS1M0 | 9.3 TS1M2 |
DB2 Universal Database on AIX | 9.3 TS1M0 | 9.3 TS1M2 |
Aster Data nCluster on Linux x64 | 9.3 TS1M0 | 9.3 TS1M2 |
Microsoft Windows Server 2008 | 9.3 TS1M0 | 9.3 TS1M2 |
Microsoft Windows Server 2003 for x64 | 9.3 TS1M0 | 9.3 TS1M2 |
Microsoft Windows Server 2003 Standard Edition | 9.3 TS1M0 | 9.3 TS1M2 |
Microsoft Windows Server 2003 Enterprise Edition | 9.3 TS1M0 | 9.3 TS1M2 |
Microsoft Windows Server 2003 Datacenter Edition | 9.3 TS1M0 | 9.3 TS1M2 |
Microsoft® Windows® for x64 | 9.3 TS1M0 | 9.3 TS1M2 |
Z64 | 9.3 TS1M0 | 9.3 TS1M2 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
ODS LISTING is off by default for the SAS windowing environment in SAS® 9.3. PROC PRINTTO requires ODS LISTING to be on in order to redirect listing to an external file or to a SAS catalog entry.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2011-10-11 13:52:08 |
Date Created: | 2011-09-06 14:35:17 |